package com.qiyang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Created on 2018/5/30.
 *
 * @author sehuaqi.
 * 描述：
 */
@SpringBootApplication
public class App {
    public static void main(String args[]) {
    	//执行函数
        SpringApplication.run(App.class,args);
    }

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
